var _api_root = 'https://localhost/api/';
// var _api_root = 'https://119.29.176.123/api/';
// var _api_root = 'http://192.168.10.60:443/api/';


// var _api_root = 'http://oyj.vipgz1.idcfengye.com/api/';
var api = {
    default: {
      img_server: 'http://39.106.212.32:2020',
      submitFormId:_api_root + 'member/submitFormId',
      store: _api_root + 'default/store',
      index: _api_root + 'applet/index',
      indexList: _api_root + 'applet/indexList',
      bannerList: _api_root + 'applet/bannerList',

      goods_list: _api_root + 'pms/product/queryProductList1',
      goods_shop: _api_root + 'pms/product/queryAllProductBySupplyId',
        // cat_list: _api_root + 'pms/getProductCategoryDto',
      cat_list: _api_root + 'pms/listWithChildren',

      goods: _api_root + 'pms/product/queryProductDetail',
      district: 'https://www.91weiyi.xyz/addons/zjhj_mall/core/web/index.php?store_id=21&r=api/default/district',
      goods_attr_info: _api_root + "home/attr/list",
      upload_image: _api_root + "aliyun/oss/upload",
      comment_list: _api_root + "order/comment_list",
      article_list: _api_root + "member/article_list",
      article_detail: _api_root + "member/article_detail",
        video_list: _api_root + "default/video-list",
        goods_qrcode: _api_root + "default/goods-qrcode",
        coupon_list: _api_root + "member/coupon/alllist",
        topic_list: _api_root + "home/subjectList",
        topic: _api_root + "home/subjectDetail",
    },
    cart: {
        list: _api_root + 'cart/list',
        add_cart: _api_root + 'cart/addCart',
        delete: _api_root + 'cart/delete',
      add_favorite: _api_root + 'cart/add_favorite',

      update_quantity: _api_root + 'cart/update/quantity',
    },
    passport: {
        login: _api_root + 'applet/login_by_weixin',
        quick_login: _api_root + 'applet/quick_login',
        on_login: _api_root + 'passport/on-login',
    },
    order: {
        submit_preview: _api_root + 'order/submitPreview',
        submit: _api_root + 'order/generateOrder',
        pay_data: _api_root + 'pay/prepay',
      chongzhi: _api_root + 'pay/chongzhi',
      tixian: _api_root + 'pay/tixian',
      getQr: _api_root + 'oms/getQR',


        search: _api_root + 'oms/search',
        list: _api_root + 'order/list',
        admin_list: _api_root + 'order/admin_list',
        deliver: _api_root + 'order/update/delivery',

      revoke: _api_root + 'order/cancelOrder',
      confirm: _api_root + 'order/querenOrder',
      testcomment: _api_root + 'order/commentOrder',
      updateMember: _api_root + 'member/updateMember',

        count_data: _api_root + 'order/count-data',
        detail: _api_root + 'order/detail',
        getWayBillInfo: _api_root + 'order/getWayBillInfo',
        refund_preview: _api_root + 'order/refund-preview',
        refund: _api_root + 'pay/refund',
        refund_detail: _api_root + 'order/refund-detail',
        comment_preview: _api_root + 'order/comment-preview',
        comment: _api_root + 'order/comment',
        express_detail: _api_root + 'order/express-detail',
        clerk: _api_root + "order/clerk",
        clerk_detail: _api_root + 'order/clerk-detail',
        get_qrcode: _api_root + 'order/get-qrcode',
    },
    user: {
        get_brokerage: _api_root + 'member/brokerage/getBrokerage',
      get_blance: _api_root + 'member/blance/getBlance',
      get_chongzhi: _api_root + 'member/blance/getCongzhi',

      get_fans: _api_root + 'applet/list',
        address_list: _api_root + 'address/list',
        address_detail: _api_root + 'address/detail',
        address_save: _api_root + 'address/save',
        address_set_default: _api_root + 'address/address-set-default',
        address_delete: _api_root + 'address/delete',
        save_form_id: _api_root + "collection/save-form-id",
      favorite_add: _api_root + "ums/collect/create",
        favorite_remove: _api_root + "collection/favorite-remove",
      favorite_list: _api_root + "ums/collect/list",
        index: _api_root + "applet/user",
        wechat_district: _api_root + "user/wechat-district",
        add_wechat_address: _api_root + "user/add-wechat-address",
        topic_favorite: _api_root + "collection/topic-favorite",
        topic_favorite_list: _api_root + "collection/topic-listCollect",
    },
    share: {
      
        join: _api_root + 'member/createBusiness',
        create_admin: _api_root + 'member/createAdmin',

        check: _api_root + 'share/check',
        get_info: _api_root + 'share/get-info',
        get_price: _api_root + 'share/get-price',
        apply: _api_root + 'share/apply',
        cash_detail: _api_root + 'share/cash-detail',
        get_qrcode: _api_root + 'share/get-qrcode',
        shop_share: _api_root + 'share/shop-share',
        bind_parent: _api_root + 'share/bind-parent',
        get_team: _api_root + 'share/get-team',
        get_order: _api_root + 'share/get-order',
    },
    coupon: {
        index: _api_root + 'member/coupon/list',
        share_send: _api_root + 'coupon/share-send',
        receive: _api_root + 'member/coupon/add',
    },
    red: {
        index: _api_root + 'redPacket/list',
        receive: _api_root + 'redPacket/accept',
    },
};
module.exports = api;